import request from "@/utils/request";

// ppt模板列表
export function pptTemplateList(query) {
  return request({
    url: "/mall/PPtTemplate/list",
    method: "get",
    params: query,
  });
}

//添加ppt分类
export function addPPtTemplate(data) {
  return request({
    url: "/mall/PPtTemplate/add",
    method: "post",
    data: data,
  });
}
//查询ppt分类
export function queryPPtTemplate(id) {
  return request({
    url: "/mall/PPtTemplate/" + id,
    method: "get",
  });
}
//更新ppt分类
export function updatePPtTemplate(data) {
  return request({
    url: "/mall/PPtTemplate/edit",
    method: "put",
    data: data,
  });
}
//删除ppt分类
export function delPPtTemplate(id) {
  return request({
    url: "/mall/PPtTemplate/" + id,
    method: "delete",
  });
}
//开关
export function handleShow(data) {
  return request({
    url: "/mall/PPtTemplate/isStatus",
    method: "put",
    data: data,
  });
}
//ppt 生成记录
export function userPPtList(query) {
  return request({
    url: "/mall/userPPt/list",
    method: "get",
    params: query,
  });
}

